const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');//引入分页模块
var AlbumSchema = new mongoose.Schema({
    cateId:mongoose.Schema.ObjectId,
    fieldname: String,
    originalname: String,
    encoding: String,
    mimetype: String,
    destination: String,
    filename: String,
    path: String,
    size: Number
});
AlbumSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Album',  AlbumSchema);;